-- GENERATED SPELL FOR [Cultist Saboteur] --


function spell0_28538(pUnit, Event) --@Throw Dynamite,n/a--
pUnit:FullCastSpellOnTarget(40062,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28538', 1000, 1)
end

function Sorts_28538(pUnit, Event)
local choix_sorts_28538 = math.random(0, 0)
if choix_sorts_28538 == 0 then
pUnit:RegisterEvent('spell0_28538', 1, 1)
end
end

function mob28538_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28538', math.random(1500, 3000), 1)
end

function mob28538_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28538_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28538_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28538, 1, 'mob28538_Action')
RegisterUnitEvent(28538, 2, 'mob28538_Leave')
RegisterUnitEvent(28538, 3, 'mob28538_Kill')
RegisterUnitEvent(28538, 4, 'mob28538_Die')
